# Template file for 'libjpeg6-turbo'
pkgname=libjpeg6-turbo
version=2.1.5.1
revision=1
wrksrc=libjpeg-turbo-${version}
build_style=cmake
configure_args="-DCMAKE_INSTALL_LIBDIR=/usr/lib"
hostmakedepends="yasm"
short_desc="Derivative of libjpeg which uses SIMD instructions"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="IJG, BSD-3-Clause, Zlib"
homepage="https://libjpeg-turbo.org/"
changelog="https://raw.githubusercontent.com/libjpeg-turbo/libjpeg-turbo/main/ChangeLog.md"
distfiles="${SOURCEFORGE_SITE}/libjpeg-turbo/libjpeg-turbo-${version}.tar.gz"
checksum=2fdc3feb6e9deb17adec9bafa3321419aa19f8f4e5dea7bf8486844ca22207bf

provides="jpeg-6_1"

post_install() {
	vlicense LICENSE.md

	rm -r ${DESTDIR}/usr/share/doc \
		  ${DESTDIR}/usr/share/man \
		  ${DESTDIR}/usr/bin \
		  ${DESTDIR}/usr/include \
		  ${DESTDIR}/usr/lib/*.a \
		  ${DESTDIR}/usr/lib/*.so \
		  ${DESTDIR}/usr/lib/pkgconfig \
		  ${DESTDIR}/usr/lib/cmake
}
